package com.salesmanager.core.business.book.service;

import com.salesmanager.core.business.book.Book;
import com.salesmanager.core.business.generic.exception.ServiceException;
import com.salesmanager.core.business.generic.service.SalesManagerEntityService;
import com.salesmanager.core.business.statistics.model.BookCriteria;
import com.salesmanager.web.model.paging.PaginationDataList;

/**
 * Created by LiuTong on 2017/11/21.
 */
public interface BookService extends SalesManagerEntityService<Long, Book> {

    PaginationDataList<Book> getBookList(BookCriteria criteria);

    void saveOrUpdate(Book book) throws ServiceException;

    void deleteBook(String bookId) throws ServiceException;
}
